package cn.hnucm.orderservice.utils;

import lombok.Getter;

/**
 * @Description:
 * @author: chenjintao
 * @Date: 2021/12/8 14:50
 */
@Getter
public enum ResultCode {

    //成功
    SUCCED(200, "成功"),
    //失败-参数不符合要求
    NOTSATISFACTION_PARAMETER(401, "参数不符合要求"),
    //失败-没有找到资源
    RESOURCES_NOTFIND(404, "没有找到资源"),
    //错误-服务器内部出错
    SERVER_ERROR(500, "服务器内部出错");


    private final int code;
    private final String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }


}
